package io.renren.modules.substation.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TRegisterPointInfoDao;
import io.renren.modules.substation.entity.TRegisterPointInfoEntity;
import io.renren.modules.substation.service.TRegisterPointInfoService;


@Service("tRegisterPointInfoService")
public class TRegisterPointInfoServiceImpl extends ServiceImpl<TRegisterPointInfoDao, TRegisterPointInfoEntity> implements TRegisterPointInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TRegisterPointInfoEntity> page = this.page(
                new Query<TRegisterPointInfoEntity>().getPage(params),
                new QueryWrapper<TRegisterPointInfoEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<TRegisterPointInfoEntity> queryRegisterPointInfoListByCondition(TRegisterPointInfoEntity tRegisterPointInfoEntity){
        return baseMapper.queryRegisterPointInfoListByCondition(tRegisterPointInfoEntity);
    }

}